package com.eva.service.common;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class Generator {

    /**
     * 生成文章UID
     *
     * @return String
     */
    public String generateArticleUid () {
        return StringUtils.replace(UUID.randomUUID().toString(), "-", "");
    }
}
